import React from "react";

interface LoadingOverlayProps {
  message: string;
}

const LoadingOverlay: React.FC<LoadingOverlayProps> = ({ message }) => (
  <div className="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center z-50">
    <div className="bg-white dark:bg-gray-800 p-6 rounded shadow-lg text-center">
      <p className="text-lg font-bold dark:text-white">{message}</p>
    </div>
  </div>
);

export default LoadingOverlay;